#ifndef INCLUDED_CGAMEENTITY
#define INCLUDED_CGAMEENTITY

#include "VGCVirtualGameConsole.h"
#include "CImageEntity.h"
#include "CImage.h"

class CGameEntity : public CImageEntity {
	private: double speed;
			 double direction;
			 double lastTime;

	public: CGameEntity(CImage image, double x, double y, double speed, double direction);
			~CGameEntity();

			void setSpeed(double speed);
			double getSpeed();

			void setDirection(double direction);
			double getDirection();

			void step(const double &time);
			bool isAt(CVector point);

			virtual bool die()=0;

	protected: double delta(const double &time);
};

#endif